package com.chujian.system.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chujian.framework.bean.IdNameCompose;
import com.chujian.framework.core.base.BaseService;
import com.chujian.core.entity.CoreDict;
import com.chujian.core.vo.CreDictVo;

import java.util.List;

/**
 * 字典表 服务类
 *
 * @author chujian
 * @since 2021-07-28
 */
public interface CoreDictService extends BaseService<CoreDict> {

    IPage<CoreDict> pageParent(Integer current, Integer size, CoreDict coreDict);

    List<CoreDict> listByPid(Long dictPid);

    List<CoreDict> getTreeItems(Long dictPid);

    List<IdNameCompose> getSampleTreeItems(Long dictPid);

    IPage<CoreDict> pageParentTrees(Integer current, Integer size, CoreDict coreDict);

    void creDict(CreDictVo creDictVo);

    void addDictItems(CreDictVo creDictVo);
}
